Skip to content

Conversation

@ith-harvey
Copy link
Contributor

@ith-harvey ith-harvey commented Nov 15, 2025

Summary
This PR relocates MultiSigBatchBase.sol from m-portal-lite into the common package so it can be shared across repositories. Since multisig batch operations will be used across multiple projects for upgrades and related scripting tasks, centralizing this contract in common avoids duplication and ensures consistent behavior.

Motivation
MultiSigBatchBase.sol exists only in m-portal-lite, but upcoming workflows require multisig batch operations in several repos. Moving this contract into common allows all repositories to import the same implementation directly, rather than maintaining multiple copies.

Changes
• Added MultiSigBatchBase.sol to the common package
• Updated foundry.toml to ignore safe-utils lint warnings
• Imported the same version of safe-utils used in m-portal-lite (latest version introduced breaking import errors, so this PR uses the compatible release)

Next steps
remove MultisigBatchBase.sol m-portal-lite to reference the one now in common

@ith-harvey ith-harvey changed the title included multisig batch script into utilities Added Multisig Batch opps Nov 15, 2025
@github-actions
Copy link

Changes to gas cost

Generated at commit: 31e80f60241b95614bc6ca36f1a34a91ec195ff0, compared to commit: 613d2d95a476612270324ecbe92317eb5e9bc98f

🧾 Summary (20% most significant diffs)

Contract Method Avg (+/-) %

Full diff report 👇
Contract Deployment Cost (+/-) Method Min (+/-) % Avg (+/-) % Median (+/-) % Max (+/-) % # Calls (+/-)
ContractHelperHarness 430,744 (0) getContractFrom 1,910 (0) 0.00% 2,112 (+1) +0.05% 2,145 (0) 0.00% 2,192 (0) 0.00% 269 (0)
VoidDeployer 128,035 (+12)
AccountWithFallback 68,561 (-12)
AccountWithFunctionReturningInvalidData 208,424 (+12)
AccountWithoutFallback 66,854 (+12)

@github-actions
Copy link

LCOV of commit a3e30e8 during Forge Coverage #152

Summary coverage rate:
  lines......: 93.7% (433 of 462 lines)
  functions..: 93.4% (141 of 151 functions)
  branches...: no data found

Files changed coverage rate: n/a

@ith-harvey ith-harvey marked this pull request as ready for review November 15, 2025 19:13
@ith-harvey ith-harvey changed the title Added Multisig Batch opps Add Multisig Batch opps Nov 15, 2025
@ith-harvey ith-harvey changed the title Add Multisig Batch opps Add Multisig Batch utility for forge scripts Nov 15, 2025
Copy link
Contributor

@Oighty Oighty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine as an interim solution. I talked to Iryna about bumping the version to fix some of the API routes that have been deprecated on certain deployments of the Safe Transaction Service, but it may take more work with the import errors you mentioned. The safe-utils library also doesn't support all the chains. We may eventually want to find another solution or fork it and implement fixes ourselves.

@Oighty Oighty self-requested a review November 16, 2025 15:37
@ith-harvey ith-harvey merged commit e54273e into main Nov 16, 2025
2 checks passed
@ith-harvey ith-harvey deleted the safe-script-batch-ops branch November 16, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants